package pers.cmc.mysql.model;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 配置类
 * @author EDY
 */
@Data
@ToString
@EqualsAndHashCode
@ConfigurationProperties(prefix = "cmc.config")
@Component
public class Config {
    private MysqlConfig mysql;
    private ReadisConfig readis;

    public Config() {}
    public Config(MysqlConfig mysql, ReadisConfig readis) {
        this.mysql = mysql;
        this.readis = readis;
    }
}
